<script setup lang="ts">
import { ref, onMounted, reactive, computed } from "vue";
import { Local } from "@/utils/storage";
import { useLayoutConfigStore } from "@/stores/layoutConfig";
const layoutConfig = useLayoutConfigStore();

onMounted(() => {
  // 保存数据到pinia
  // 获取localStorage中的布局配置数据，
  const layoutConfigState = Local.get("layoutConfig");
  // 更新到pinia状态中
  if (layoutConfigState) layoutConfig.updateState(layoutConfigState);
});
</script>

<template>
  <div class="h100">
    <RouterView></RouterView>
  </div>
</template>

<style scoped></style>
